.class Lcom/brixd/niceapp/community/CommunityAppListFragment$3;
.super Ljava/lang/Object;
.source "CommunityAppListFragment.java"

# interfaces
.implements Lcom/brixd/niceapp/community/adapter/CommunityAppAdapter$OnItemClickListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/brixd/niceapp/community/CommunityAppListFragment;->initActions(Landroid/view/View;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/brixd/niceapp/community/CommunityAppListFragment;


# direct methods
.method constructor <init>(Lcom/brixd/niceapp/community/CommunityAppListFragment;)V
    .registers 2
    .param p1, "this$0"    # Lcom/brixd/niceapp/community/CommunityAppListFragment;

    .prologue
    .line 158
    iput-object p1, p0, Lcom/brixd/niceapp/community/CommunityAppListFragment$3;->this$0:Lcom/brixd/niceapp/community/CommunityAppListFragment;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onItemClick(I)V
    .registers 8
    .param p1, "position"    # I

    .prologue
    .line 162
    iget-object v3, p0, Lcom/brixd/niceapp/community/CommunityAppListFragment$3;->this$0:Lcom/brixd/niceapp/community/CommunityAppListFragment;

    iget-object v3, v3, Lcom/brixd/niceapp/community/CommunityAppListFragment;->mAppModels:Ljava/util/ArrayList;

    invoke-virtual {v3, p1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/brixd/niceapp/community/model/CommunityAppModel;

    .line 164
    .local v0, "appModel":Lcom/brixd/niceapp/community/model/CommunityAppModel;
    sget-object v3, Lcom/brixd/niceapp/community/CommunityAppListFragment$4;->$SwitchMap$com$brixd$niceapp$community$model$CommunityAppModel$AdapterType:[I

    invoke-virtual {v0}, Lcom/brixd/niceapp/community/model/CommunityAppModel;->getType()Lcom/brixd/niceapp/community/model/CommunityAppModel$AdapterType;

    move-result-object v4

    invoke-virtual {v4}, Lcom/brixd/niceapp/community/model/CommunityAppModel$AdapterType;->ordinal()I

    move-result v4

    aget v3, v3, v4

    packed-switch v3, :pswitch_data_86

    .line 184
    :goto_19
    return-void

    .line 166
    :pswitch_1a
    iget-object v3, p0, Lcom/brixd/niceapp/community/CommunityAppListFragment$3;->this$0:Lcom/brixd/niceapp/community/CommunityAppListFragment;

    iget v3, v3, Lcom/brixd/niceapp/community/CommunityAppListFragment;->mType:I

    sget-object v4, Lcom/brixd/niceapp/community/AbsCommunityBaseFragment$AppListType;->Type_Tag:Lcom/brixd/niceapp/community/AbsCommunityBaseFragment$AppListType;

    invoke-virtual {v4}, Lcom/brixd/niceapp/community/AbsCommunityBaseFragment$AppListType;->ordinal()I

    move-result v4

    if-ne v3, v4, :cond_50

    .line 167
    iget-object v3, p0, Lcom/brixd/niceapp/community/CommunityAppListFragment$3;->this$0:Lcom/brixd/niceapp/community/CommunityAppListFragment;

    invoke-virtual {v3}, Lcom/brixd/niceapp/community/CommunityAppListFragment;->getActivity()Landroid/support/v4/app/FragmentActivity;

    move-result-object v3

    const-string v4, "EnterCommunityDetailFromAppFilterPage"

    invoke-static {v3, v4}, Lcom/umeng/analytics/MobclickAgent;->onEvent(Landroid/content/Context;Ljava/lang/String;)V

    .line 175
    :goto_31
    new-instance v1, Landroid/content/Intent;

    iget-object v3, p0, Lcom/brixd/niceapp/community/CommunityAppListFragment$3;->this$0:Lcom/brixd/niceapp/community/CommunityAppListFragment;

    invoke-virtual {v3}, Lcom/brixd/niceapp/community/CommunityAppListFragment;->getActivity()Landroid/support/v4/app/FragmentActivity;

    move-result-object v3

    const-class v4, Lcom/brixd/niceapp/community/activity/CommunityDetailActivity;

    invoke-direct {v1, v3, v4}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    .line 176
    .local v1, "intent":Landroid/content/Intent;
    const-string v3, "AppModel"

    invoke-virtual {v1, v3, v0}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/io/Serializable;)Landroid/content/Intent;

    .line 177
    const-string v3, "ModelPosition"

    invoke-virtual {v1, v3, p1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;

    .line 178
    iget-object v3, p0, Lcom/brixd/niceapp/community/CommunityAppListFragment$3;->this$0:Lcom/brixd/niceapp/community/CommunityAppListFragment;

    const/16 v4, 0xa

    invoke-virtual {v3, v1, v4}, Lcom/brixd/niceapp/community/CommunityAppListFragment;->startActivityForResult(Landroid/content/Intent;I)V

    goto :goto_19

    .line 169
    .end local v1    # "intent":Landroid/content/Intent;
    :cond_50
    new-instance v2, Ljava/util/HashMap;

    invoke-direct {v2}, Ljava/util/HashMap;-><init>()V

    .line 170
    .local v2, "map":Ljava/util/HashMap;, "Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/String;>;"
    const-string v3, "ArticleName"

    invoke-virtual {v0}, Lcom/brixd/niceapp/community/model/CommunityAppModel;->getTitle()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v2, v3, v4}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 171
    const-string v3, "ArticleId"

    new-instance v4, Ljava/lang/StringBuilder;

    invoke-direct {v4}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v0}, Lcom/brixd/niceapp/community/model/CommunityAppModel;->getId()I

    move-result v5

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v4

    const-string v5, ""

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v2, v3, v4}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 172
    iget-object v3, p0, Lcom/brixd/niceapp/community/CommunityAppListFragment$3;->this$0:Lcom/brixd/niceapp/community/CommunityAppListFragment;

    invoke-virtual {v3}, Lcom/brixd/niceapp/community/CommunityAppListFragment;->getActivity()Landroid/support/v4/app/FragmentActivity;

    move-result-object v3

    const-string v4, "CommunityClickGotoDetail"

    invoke-static {v3, v4, v2}, Lcom/umeng/analytics/MobclickAgent;->onEvent(Landroid/content/Context;Ljava/lang/String;Ljava/util/Map;)V

    goto :goto_31

    .line 164
    :pswitch_data_86
    .packed-switch 0x1
        :pswitch_1a
    .end packed-switch
.end method
